@extends('layouts.back_stage')
@section('style')
    @parent
    <link href="{{env('CDN_DOMAIN_NAME')}}/css/customers.css" rel="stylesheet">
    <style>
        .record_details tr th{
            text-align: center;
        }
    </style>
@endsection
@section('content')
    <div class="container">
        <div class="container_box">
            <div class="chartshead">
                <h1>记录详情</h1>
                <a href="/finance" class="chartshead_back">返回</a>
            </div>
            <table id="record_details" class="record_details" border="0" cellspacing="0">
                <tr>
                    <th>收款时间</th>
                    <th>用户名</th>
                    <th>订单号</th>
                    <th>所在大区</th>
                    <th>品牌名称</th>
                    <th>颜色</th>
                    <th>款号</th>
                    <th>数量</th>
                    <th>商品金额</th>
                    <th>优惠金额</th>
                    <th>折扣</th>
                    <th>收款金额</th>
                </tr>
                <tr>
                    <td>{{$order->successed_at}}</td>
                    <td>{{$order->addressee_name}}</td>
                    <td>{{$order->ordernum}}</td>
                    <td>{{strstr($order->addressee_place,' ',true)}}</td>
                    <td>{{$brand_name}}</td>
                    <td>{{$order->color}}</td>
                    <td>{{$order->girard}}</td>
                    <td>{{$order->num}}</td>
                    <td>{{number_format($order->total_price,2)}}</td>
                    <td>{{number_format($order->total_price-$order->actual_price,2)}}</td>
                    <td>{{number_format($order->actual_price/$order->total_price,2)}}</td>
                    <td>{{number_format($order->actual_price,2)}}</td>
                </tr>
            </table>
        </div>
    </div>
@endsection